Auto merge of #3242 - jhbabon:cfgs-flags-per-package, r=alexcrichton
authorbors <bors@rust-lang.org>
Tue, 1 Nov 2016 23:06:35 +0000 (16:06 -0700)
committerGitHub <noreply@github.com>
Tue, 1 Nov 2016 23:06:35 +0000 (16:06 -0700)
commiteca9e159b6b0d484788ac757cf23052eba75af55
tree4f501f08329640d575494cd44a3a93920e2a2c60
parent77e36ed12565f580851fd18211f319140d6db92a
parent665aa7fe7e8309712bb35b8682ccd5cdcf127234
Auto merge of #3242 - jhbabon:cfgs-flags-per-package, r=alexcrichton

FIX: Call rustdoc test with the correct cfg flags of a package.

There was a situation in which if you you had a lib that depends on a package with features, whenever you ran the tests for the package the `rustdoc test` call was failing because it was called with the root `cfg` flags, not the package `cfg` flags.

This fix solves the issue by keeping track of the `cfg` flags per package, so the `rustdoc` command will be generated with the correct `cfg` flags.

Closes #3172